from multiprocessing import Process
from time import sleep


def run():
    print("子进程")
    while True:
        print("excute run function")
        sleep(1)

if __name__=="__main__":
    print("父进程")
    p=Process(target=run)
    p.start()
    while True:
        print("python is good")
        sleep(1.5)